//
//  MNWebsController.swift
//  SurfEasy
//
//  Created by 薛永伟 on 2019/9/12.
//  Copyright © 2019 XueYongWei. All rights reserved.
//

import UIKit

class MNWebsController: UIViewController {

    
    lazy var windowsPreviewBtn: UIButton = {
        let view = UIButton.init(type: .custom)
        view.setTitle("回", for: .normal)
        view.setTitleColor(UIColor.red, for: .normal)
        return view
    }()
    
    lazy var webHolder: UIView = {
        let view = UIView()
        return view
    }()
    
    var webviewController:BSWebViewController?
    
    override func viewDidLoad() {
        
        super.viewDidLoad()
        
        view.addSubview(windowsPreviewBtn)
        windowsPreviewBtn.snp.makeConstraints { (make) in
            make.bottom.equalToSuperview().offset(0)
            make.centerX.equalToSuperview()
            make.width.height.equalTo(44.scaleLength)
        }
        
        view.addSubview(webHolder)
        webHolder.snp.makeConstraints { (make) in
            make.top.left.right.equalToSuperview()
            make.bottom.equalToSuperview().offset(0)
        }
        
        view.bringSubviewToFront(windowsPreviewBtn)
    }
    
    

}
